package com.zyh.homework.kehoulianxi;

import com.zyh.homework.kehoulianxi.domain.Person;

public class Test1 {
    public static void main(String[] args) {
        /*try {
            Person person = new Person("zyh",-1);
        } catch (Exception e) {
            e.printStackTrace();
        }*/
        try {
            Person person1 = new Person();
            person1.setName("zyh");
            person1.setLifeValue(10);
            System.out.println(person1);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

